def determine_member_level():
    """根据消费金额和积分判定会员等级"""
    try:
        #获取用户输入的消费金额和积分
        consume_amount = float(input("请输入消费金额(元):"))
        points = int (input("请输入积分(分):"))
    except ValueError:
     print("输入格式无效，请确保消费金额为数字、积分为整数:")
     return
            
        #按等级从高到低以此判断
    if consume_amount >=1000 and points >=10000:
            level = "钻石会员"
    elif 500 <= consume_amount < 1000 and 5000 <= points < 10000:
            level ="白金会员"
    elif 500 <= consume_amount < 500 and 2000 <= points < 5000:
            level ="黄金会员"
    elif 500 <= consume_amount < 200 and 1000 <= points < 2000:
            level ="白银会员"
    elif  points < 500:
            level ="青铜"
    else:
        level ="未匹配到有效会员等级，请检查消费金额和积分是否符合规则！"
    print(f"根据您的消费金额（{consume_amount}元）和积分（{points}分），您的会员等级为：{level}")
determine_member_level()